export const LoadingReducer = (prevState={
  isLoading:false
}, action)=>{
  // console.log(action);
  switch (action.type) {
    case "change_loading":
      let newState = {...prevState}
      newState.isLoading = action.payload
      return newState;
  
    default:
      return prevState;
  }
}